<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="">
    <meta name="author" content="">
    <link rel="shortcut icon" href="file:///C|/wamp/www/assets/ico/favicon.ico">
    <link href="../../css/estilo.css" rel="stylesheet" type="text/css">

    <!-- Bootstrap core CSS -->
    <link href="../../css/bootstrap.css" rel="stylesheet" media="screen">
    <!-- Just for debugging purposes. Don't actually copy this line! -->
    <!--[if lt IE 9]><script src="../../assets/js/ie8-responsive-file-warning.js"></script><![endif]-->
    <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!--[if lt IE 9]>
      <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
      <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
    <title>Proyecto SGA</title>
</head>

<body class="fondo">
<div id="hld">
   


<div class="container">
<div class="panel panel-default">
<div class="panel-body">
<?php
include_once("ClsGrupo.php");
$idgrupo=$_GET['id_grupo'];

$objgrupo = new ClsGrupo;
$resultado=$objgrupo->consultarGrupoPorParametro('id',$idgrupo,'0','1');

while($row=@mysql_fetch_array($resultado)){
		$id_grupo=$row["GRP_IdGrupo"];
		$nombre=$row["GRP_Nombre"];
		$abreviatura=$row["GRP_Abreviatura"];
		$nombre_nivel=$row["NIV_Nombre"];
}

?>
  <!-- Main component for a primary marketing message or call to action -->
  <div class="well well-lg">
    <div class="imagen_head"><img src="../../img/header/icon-48-category.png" width="48" height="48"></div>
    <div class="titulo_head">Detalle de Grupo</div>
    <div class="toolbar_head">
      <div class="btn-toolbar" role="toolbar">

           
                     <?php
                        echo "<a href=editar_grupo.php?id_grupo=".$id_grupo." class='btn btn-default'><span class='glyphicon glyphicon-pencil'></span><br> Editar</a>"; ?>         
           
<a href="registrar_grupo.php" class="btn btn-primary"><span class="glyphicon glyphicon-plus"></span><br> Nuevo			</a>
            
          <a href="index.php" class="btn btn-danger"><span class="glyphicon glyphicon-remove"></span><br>Cerrar</a>	
          <button type="button" class="btn btn-default">
                    <span class="glyphicon glyphicon-question-sign"></span><br> Ayuda
                  </button>
     
      </div><!-- /btn-toolbar -->  
    </div><!-- /toolbar head -->  
  </div><!-- /Well -->   

<div class="panel panel-default">
  <!-- Default panel contents -->
<div class="panel-body">
    
    
<form name="frmDetalleGrupo" action="guardar_grupo.php" method="post" class="form-horizontal" role="form">
<fieldset>
	<legend>Detalles</legend>
    <div class="form-group">
    <label for="lblIdGrupo" class="col-sm-2 control-label">ID Grupo:</label>
    	<div class="col-sm-3">
        <input name="txtIdGrupo" type="text"  required class="form-control" id="txtIdGrupo" value="<?php echo $id_grupo ?>" disabled>
        </div>
  	</div>
	<div class="form-group">
    	<label for="lblNombre" class="col-sm-2 control-label">Nombre:</label>
        <div class="col-sm-3">
        <input name="txtNombre" type="text"  required class="form-control" id="txtNombre" value="<?php echo $nombre ?>" disabled>
        </div>
  	</div>
	<div class="form-group">
    	<label for="lblAbreviatura" class="col-sm-2 control-label">Abreviatura:</label>
        <div class="col-sm-3">
        <input name="txtAbreviatura" type="text"  required class="form-control" id="txtAbreviatura" value="<?php echo $abreviatura ?>" disabled>
        </div>
  	</div>
	<div class="form-group">
    	<label for="lblNivel" class="col-sm-2 control-label">Nivel:</label>
        <div class="col-sm-3">
        <input name="txtNivel" type="text"  required class="form-control" id="txtNivel" value="<?php echo $nombre_nivel ?>" disabled>
        </div>
  	</div>    
    
	<div class="form-group">
        <div class="col-sm-offset-1 col-sm-10">

		<input id="accion" name="accion" value="guardar" type="hidden">
        </div>
  	</div>
        
    </fieldset>
    </form>


  </div><!-- /panel-body -->
</div><!-- /panel-default -->


</div><!-- /panel general -body -->
</div><!-- /panel general -default -->
</div> <!-- /container -->


    <!-- Bootstrap core JavaScript
    ================================================== -->
    <!-- Placed at the end of the document so the pages load faster -->
    <script src="../../js/jquery.min.js"></script>
    <script src="../../js/bootstrap.min.js"></script>
    </div>
  </body>
</html>